#!/usr/bin/env python3
# -*- coding: utf-8 -*-

__author__ = 'hhuua'


from threading import Timer
from Tools.spiderIp import start_get_ip, start_ip_app
from Spiders.QQNewsSpider import start_spider


if __name__ == '__main__':
    # 启动IP服务
    start_get_ip()
    t = Timer(600, start_get_ip)
    t.start()
    start_ip_app()

    # 开启爬虫
    start_spider()

